code: def close(self):
      
      self._report_file.close()
      # Make sure everything's closed.
      for files in self._output_files.values():
        for f in files.values():
          f.close()
docs: Implementation of Reporter callback.