Battery safety and fire handling