Shut down SSL on the stream.
void shutdown();
This function is used to shut down SSL on the stream. The function call will block until SSL has been shut down or an error occurs.
Thrown on failure.