code: def closeEvent(self, event):
          
  
          self.__interrupt_search()
          super(SearchInFiles, self).closeEvent(event)
docs: Reimplements the :meth:`QWidget.closeEvent` method.
  
          :param event: QEvent.
          :type event: QEvent