Lots of electric heating elements are thermally protected, they get too hot and break contact.
When they cool down they make contact again.
But if they are doing it continuously, I would guess they (most larger heaters have two elements), are toast by now.
I turn off the water,drain down, and blow out all my water lines, tanks, antifreeze the traps, and heat tape the incoming water line, for the winter.
I have started draining the water tank, without turn off the electric first, and had the thermo saftey break contact.
After checking it, I found an open circuit, and as I didn't have a spare at the time, just shut it down and brought one the next trip out.
Before pulling out the old element, I checked it again, and found a closed circuit, so it had reset it self.
I turn on the water, has a bury pressure tank, and listen for leakd, before turning on the pump.
I have had the flush control on the toilet freeze up, as well as the sprayer on the kit sink, in the past,
Good luck, I know it's a pain to try to remember every thing when doing a shut down.