You’d have to devise some sort of fire proof mini airlock, large enough for a laptop or whatever the largest device you expect to deal with. This would be pretty expensive and not very practical, but even if it was, then you’d have to deal with the ethical and legal issues of where it lands and whether or not it might cause a fire there too, to say nothing of injuring someone or damaging property.
> then you’d have to deal with the ethical and legal issues of where it lands
Meh, it's a risk reduction thing. Aircraft sometimes dump fuel too in emergencies: https://en.wikipedia.org/wiki/Fuel_dumping
Earth is covered with a lot of water too, if you could eject it... risk is approaching zero on dumping a flaming battery over ocean.