Fix email task interrupted cause by failure issue.