Fixed WebSocketClient connections not closing on initial connection failure