handle remaining err after removing all listeners in starttls