Is there a nice way to mark a job as failed ... i thought i may throw an exception but maybe there is some other nicer way.