A leaking heater at a mountain address is a water problem, a power problem and an access problem at the same time. The order they are handled in matters more than the speed.
Stop the flow
Find the pump breaker or the pressure switch — on a well property that is often the only true shut-off. If there is a valve on the heater's cold inlet, close that first; it isolates the appliance without killing water to the house.
Then the fuel and the power
Turn the gas valve off at the unit, or the breaker for an electric heater. Water and live electrical parts are the combination to avoid, and a heater sitting in a puddle is exactly that.
Protect what the water reaches
Towels, a bucket, anything that keeps water off subfloor, trim and stored goods. On a drained tank, the weight on the structure changes too — a full tank that empties into a room is a lot of water, and it keeps arriving while the supply is live.
Cold is the second emergency
If the power is out in freezing weather, water sitting in lines and in a heater is at risk of freezing once it stops moving. Leaving a tap at a trickle and keeping the cabinet warm, where that is possible, is worth doing while the repair is arranged.
What can be done at night
A leak can be isolated and made safe at any hour, and the water stopped. A replacement cannot — the unit has to match the fuel, the venting and the doorway, and the haul is not improvised in the dark. Making it safe tonight and scheduling the swap is the honest plan.