Add a safeguard for pending email job failure.