private void finishConnect() throws Exception {
		if (client.isConnectionPending()) {
			client.finishConnect();
		}

		// Now that we're connected, re-register for only 'READ' keys.
		client.register(selector, SelectionKey.OP_READ);

		sendHandshake();
	}