Fukushima needed cooling pumps to operate. There were 3 ways to power the pumps:
1. the reactor itself, automatically shut down when the earthquake was detected
2. diesel generators, shut down by flooding
3. power lines from elsewhere, shut down by the tsunami knocking them down
Clearly, shutting down the reactor is a self-inflicted problem. Had they left it running, the pumps would have had power, and the whole disaster wouldn't have happened.
It's a stupid panic-driven regulation that a nuclear power plant must shut down for an earthquake. Once the earthquake hits, it is too late to reach a cool shut-down state. That would take weeks. There is no justification for doing the shutdown. It just caused problems, leading to disaster.