inverter battery safety