In case of emergency:
1. Turn off the gas or electric heater.
2. Turn off the water supply.
3. Drain water heater (if necessary).