added sending email, if error occurs per project to slurm backend header