Close connection when TLS handshake fails