When closing, do not use close().  Also, if the closing call fails, do not return immediately since that leaves a locked lock.
When closing, do not use close().  Also, if the closing call fails, do
not return immediately since that leaves a locked lock.

openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl,openssl/openssl