Add automatic failed upgrade recovery.