deleting the running state in case of error so that the job is indeed retried