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