'Close the \'physical\' FITS file.'

def close(self):

    if hasattr(self._file, 'close'):
        self._file.close()
    self._maybe_close_mmap()
    self._mmap = None
    self.closed = True
    self.close_on_error = False
