DIRAPI-330: Improve TLS handshake error handling
3 files changed