Why does engine cut off after idling for awhile?

Check the coil