Websocket doesn't crash on poll if ws is not connected