Have you tried replacing the ECM. This is the brain box under the dash. It maybe overheating and shutting you down. The Part will cost about $775 from the dealer or you can go to a junk yard and get it about $30 just ask for the ECM and not the brain box. You can use any from 2000-2002 Hyundai accents. If you try this please post if it works.