Battery safety in water