Prevented Internal Server Error when SMTPTLS connection fails.