Catch OpenSSL errors