Small engine oxygen depletion shutoff algorithm and implementation