tls: use .destroy(err)
instead of destroy+emit
#1711
Closed
.destroy(err)
instead of destroy+emit
#1711