catch SSL/TLS connection errors