Solve the crash in WebSocketTest when the network in disconnected.