improved WebSocket client error reporting