You are in the right path. Recover till just before the failure time.