def cleanup(self):
     TelepathyPlugin.cleanup(self)
     if self._watch is not None:
         self._watch.cancel()
     self._watch = None