Fix booting logic on failure.