Adding the ability to cancel jobs when they fail