Handle ssl handshake errors