Emergency plan for batteries