Server: fixed connection hang on ssl exception