code: def stop(self, *args, **kwargs):
          
          if args:
              LOG.debug("args: %s" % str(args))
          if kwargs:
              LOG.debug("kwargs: %s" % str(kwargs))
          try:
              self._server.stop()
              self._server = None
  
              # Device-storage clear
              self.devices.clear()
              self.devices_all.clear()
              self.devices_raw.clear()
              self.devices_raw_dict.clear()
  
              return True
          except Exception as err:
              LOG.critical("Failed to stop server")
              LOG.debug(str(err))
              return False
docs: Stop the server thread.