[System]: Correctly implement close and shutdown in SslStream. (#4969)