Allow closing connections in the CONNECTING state.
Allow closing connections in the CONNECTING state.

- Also, explicitly close the HTTP client instance if we fail to connect.

pgriess/node-websocket-client,takano32/node-websocket-client