code: def close(self):
          
          if not self.active:
              return
  
          self.active = False
          if self._file:
              self._file.close()
              self._sincedb_update_position(force_update=True)
  
          if self._current_event:
              event = '\n'.join(self._current_event)
              self._current_event.clear()
              self._callback_wrapper([event])
docs: Closes all currently open file pointers