detect when a job is rerun after an unexpected failure, and allow handlers to treat them specially