Catch any exception while running a job