Added ability to catch websocket errors and detect if bot is alive