Change output email to only fire on non-zero exit status