Logging in starttls.js to determine if an 'error' event is called after calling 'close'.