Could be a dirty intake manifold. When I first bought my car, I had the same issue. It happens when the engine is warm, starts up then shuts down. I took it back to the dealer the same day I bought it, they took out the manifold and gave it a real clean. Never had a problem after that.