code: def unregister(self, thread):
          
          if thread not in self.threads.keys():
              self.log.warning("Can not unregister thread %s" % thread)
          else:
              del (self.threads[thread])
              self.__log.debug("Thread %s got unregistered" % thread)
docs: Unregisters an existing thread, so that this thread is no longer available.
  
          This function is mainly used during plugin deactivation.
  
          :param thread: Name of the thread