It could also be a crank or cam sensor. Check the connections. If they fail or lose connection they shut down the ignition to stop damage. It will be like you just shut the key off. Not always but usually fuel will give you some sputtering even with fuel injection. EGR causes massive vacuum leak making high idle.