Phase change energy storage safety