Electric Fuel Pump Shuts Motor Off

I don't believe any type of fuel problem will shut the engine off immediately like a light switch…especially after the car has been running and the bowls are not full just yet. It would usually run on and die out from flooding the engine which would not be immediate.