I had the same thing with my car, the alternator grounded out a melted the wires going to the power distribution box. Thats my guess. Go get you alt and battery tested. I figured out my problem because the alt was putting out 0
Final post: engine still cut out after alternator install. I knew it had to be spark because it starts back up right away. Turned out it was the battery. I had an Optima red top in it. battery was 5 years old. It was shorting. I know, I didn't beleive it either.