code: def stop(self):
          
          self._logger.debug("The Slack RTMClient is shutting down.")
          self._stopped = True
          self._close_websocket()
docs: Closes the websocket connection and ensures it won't reconnect.