Change the status the first thing if the job fails