<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disconnect_from_websocket(self):
 """Disconnects from the websocket Args: None """

        self.logger.warning('Disconnecting from websocket')
        self.logger.info('Stopping keep alive thread')
        self._ws_keep_alive.stop()
        self._ws_keep_alive.join()
        self.logger.info('Stopped keep alive thread')
        try:
            self.logger.warning('Disconnecting from websocket')
            self._ws.close()
            self.logger.info('Closed websocket connection')
        except:
            self.logger.debug('Couldn\'t terminate previous websocket connection')