skyped: handle socket errors during tls session negotiation in a graceful way