I agree with Bobjob. Check all the grounds but also check the battery. The new cars require a certain voltage to run. When you said you turn the lights on it killed the engine, that rang a bell. I have seen where a battery was weak where as it would spin the engine and start it as long as nothing else was on. While idling or running down the road and the A/C compressor, blower motor or anything that draws amps came on it would steal current from the ECM and shut down the engine. You need to do a voltage drop test on the cars electrical system. Hope this somehow helps.