Improve safety, availability and performance of energy storage systems