in case a job fail, revert the editing context