docs: def exit(self):
          """Overwrite the exit method to close threads."""
          if self._thread is not None:
              self._thread.stop()
          # Call the father class
          super(Plugin, self).exit()