Most heater failures are inconvenient. A few are actively damaging, and the difference is usually decided in the first few minutes.
Three things, in this order
Close the cold inlet above the tank. Shut the gas valve at the unit, or the breaker if it is electric. Then contain what is already out — towels, a bucket, anything that keeps water off trim and flooring. Do those three and the damage stops growing while you call.
The failures that cannot wait
Water leaving the tank under pressure and not stopping. A relief valve discharging continuously. Gas smell of any kind, which means leaving the building and calling the utility first. Water near an electrical panel or a live connection. Those are emergencies in the plain sense.
The failures that can
No hot water with a dry floor and a sound unit is miserable, not dangerous — but for a household with an infant, a medical need or a tenant without heat, it is treated as urgent rather than scheduled. Say so when you call and it will be routed that way.
What a night visit can and cannot do
A leak can be stopped and made safe at any hour. A replacement cannot be improvised at two in the morning — the unit has to match the venting and the space, and it is not on the van in every size. Isolating and scheduling is the honest outcome, and it is what protects the house overnight.
What we ask on the call
Where the water is, whether it is still running, what the unit is fuelled by, and whether anything electrical is close to the water. Four questions, and the first decision is made.