Add code to support SSL_shutdown.