Fail nicely when websocket not connected.