Fix connection close when client or server drops connection without a
clean TLS handshake.
Fix "server verify" tests for modern OpenSSL versions.