Added code to remove broken jobs.