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()
def exit ( self ) : if self . _thread is not None : self . _thread . stop ( ) super ( Plugin , self ) . exit ( )
Overwrite the exit method to close threads.