fix WebSocketClient throws NPE when trying to connect to an unreachable host