Only connect to server when SSL handshake is completed.