code: def Close(self):
      
      if self._connection:
        self._cursor = None
        self._connection.close()
        self._connection = None
  
      # TODO: move this to a central temp file manager and have it track errors.
      # https://github.com/log2timeline/dfvfs/issues/92
      try:
        os.remove(self._temp_file_path)
      except (IOError, OSError):
        pass
  
      self._temp_file_path = ''
docs: Closes the database file object.
  
      Raises:
        IOError: if the close failed.
        OSError: if the close failed.