The fuel solenoid requires power to pass fuel, if it is working. If it is contaminated / stuck open, you get fuel flow regardless. I would check the fuel solenoid valve, since it continues to run. If it Won't Run, then check power to the solenoid.
If the hoses are rubber, use a pair of vice grips to gently pinch off the fuel line and that should stop the engine, and point the finger at the solenoid valve. Don't try that with copper tubing