close wrapping conn if handshake fails