Only send an email out when the entire job is complete or in error state