Work around a known issue in OpenSSL (https://github.com/openssl/openssl/issues/188) that does not permit the TLS handshake to be failed if the ALPN negotiation fails.