code: async def on_shutdown(self, app):
          
          for ws in self.clients.copy():
              await ws.close(code=WSCloseCode.GOING_AWAY,
                             message='Server shutdown')
          self.shutdown()
docs: Graceful shutdown handler
  
          See https://docs.aiohttp.org/en/stable/web.html#graceful-shutdown