Safely close the connection if an IOException happens during upgrade
Ensure the SSL channel is closed even on socket error
Prep 3.2.0.Final
Next is 3.3.0.Beta1