As you can see, there are many things that can be the cause of an idling problem. This section will attempt to narrow it down, but expect some trial-and-error. Skip to the section that applies to you: Engine Idle Is Too Low Or Stalls or Engine Idle Is Too High. They are in a general most-likely-to-occur order.
1 Get inside a home, building, or hard top automobile (not a convertible). Although you may be injured if lightning strikes your car, you are much safer inside a vehicle than outside.  Remember, rubber-soled shoes and rubber tires provide NO protection from lightning.
But if you are stuck in a car, the National Lightning Safety Institute says drivers should safely pull off to the side of the road (away from large trees), turn on the emergency flashers, turn off the engine, put their hands in their lap and wait out the storm.