You don’t need to shut off your water heater if the water is off as it is not made to heat continuously.