Low voltage can cause the ESS (Engine Stop Solenoid / Fuel shutoff, pink wire at the IP) to stop the fuel. Bad/failing batteries can allow the voltage to dip low enough at idle, even if the alternator is doing its job. Poor grounds, connections, or a failing ign. switch can do the same.