Closes the connection. Calling close() while still CONNECTING aborts the handshake.
close()
CONNECTING