Surprised that this factor has not been brought up with regard to the use of the oil pressure switch and other means, to kill an electric fuel pump.....
On fuel injected vehicles, the reason for automatic fuel pump shutdown would be the inherent danger in the rupture of a high pressure fuel line in an accident. 50psi is a typical fuel supply requirement on an injected system, and with the use of an electric fuel pump commonly located in the gas tank... the entire line from the tank to the injector rail pressure regulator is at high pressure....
which leads to a severe fuel spill in short order in an accident that ruptures the fuel line any where, not good for possible unconscious passengers in the vehicle.... nor manufacturers..
As already noted above the oil pressure switch is a simple way of killing the pump in an ignition on, after accident scenario, the assumption being the engine will be stopped due to damage in the accident. Of course the "freebie" feature by using the oil pressure switch as mentioned in the original post, is also to kill the engine if no oil pressure for whatever reason..
Toyota ECUs I'm familar with, shut down the fuel pump upon detection of six successive misfires, assumption being there's a big time problem up front or, accident has occurred. Airbags firing on new cars also drop the fuel pump relay.. I would guess some cars use other additional sensors to guarantee the electric fuel pump will be shut off, given vehicle roll over fuel leakage standards and todays liability environment.
Following that same line of thought, the Toyota Prius similarly opens a relay located inside the high voltage battery enclosure for automatic shut off HV power in a major accident, that must be reset through a special procedure.
Uncontrolled release of stored energy is inherently dangerous whether it be gasoline or electricity.