Fix bug when SMTP client encountered error, it would throw