reset progress and error if a task is restarted