Added task deletion at the end of the job to make sure it's not performed twice.