better error message when the websocket does not open.