Catch errors starting the websocket