unexpected task failures didn't restart properly because the state wasn't reset