If the software crashes while writing to the EEPROM, it can permanently corrupt the battery controller, making the battery unusable.