code: async def stop(self):
          
  
          self._logger.info("Stopping all servers")
          for server in self.servers:
              await server.stop()
  
          self._logger.info("Stopping all device adapters")
          await self.device_manager.stop()
docs: Stop the gateway manager and synchronously wait for it to stop.