Thermal damage to batteries