In attached housing, a water heater emergency is rarely confined to one room. A leaking closet unit sends water into the pan, then through the floor assembly into the unit below, and by the time it is noticed there are two households affected. That is why the first minutes matter more than the fault.
Stop the supply, then the energy
Shut the supply at the cold inlet valve on top of the unit, and fall back to the unit's main valve if it will not turn. Then kill the energy: gas control to off, breaker off at the panel. Water and electricity together are the combination worth avoiding, and a tank with a failed element can be live without heating.
Contain what has already escaped
Towels at the doorway, a bucket under the pan outlet, anything stored on the floor moved clear. If the pan drain is running, find where it discharges and put a container under it. Water travelling into a neighbouring unit or a corridor should be reported to the building manager immediately — that is a building problem as well as a repair.
If water has reached outlets, a panel or an appliance connection, keep clear and call an electrician or the utility. A gas smell means leaving the building and calling the gas utility from outside.
What the phone line can do
Someone picks up at any hour, every day of the year. The first useful thing that person can do is talk you through making the unit safe. Those hours describe the phone, not a promise that a technician is at the door at that hour — if water is still moving, say so and ask what is possible tonight.
What counts as urgent here
Active discharge from the tank. Water reaching a neighbouring unit, a corridor or electrical equipment. A relief valve that keeps discharging after the supply is off and the tank has cooled. A household that cannot be without hot water, such as one with an infant, an elderly resident or a medical need.
A drip that has stopped, a pilot that went out, or a noisy unit can usually be scheduled.
After the water is off
The repair conversation starts with the source. A tank that failed at the shell is a replacement, and it needs the Irvine permit path. A leak at a valve or fitting is a repair that can wait for daylight. Having the unit dry, the data plate visible and the age known makes that call shorter.