Power off during lead-acid battery replacement