async def stop(self):
self._shutdown = True<EOL>if self.wsck:<EOL><INDENT>_LOGGER.info('<STR_LIT>')<EOL>await self.wsck.close()<EOL>self.wsck = None<EOL><DEDENT>if self._own_loop:<EOL><INDENT>_LOGGER.info("<STR_LIT>")<EOL>self._event_loop.call_soon_threadsafe(self._event_loop.stop)<EOL><DEDENT>
Async method for stopping connectivity with the emby server.