stream-ssl: Flush OpenSSL error queue after calling SSL_shutdown().