Log any possible additional errors when throwing on an error in OpenSSL. See #796.