Add better websocket error cases.