Prevent crush in socketError during handshake