changed size() calls to use empty()
Fix "Error: Success" message when remote ssl socket closed without handshake.