allow WebSocket handshakes to fail more gracefully