402666 - Improve handling of TLS exceptions due to raw socket close.