Yes, a grounded element is usually the cause of this issue on ELECTRIC models, but since yours is GAS that would not be the case.
Do a test without clothes in it--->If you run the dryer on either TIMER DRY or NOT HEAT/AIR FLUFF, does the dryer stay running?
If it still does that--->Unplug the dryer,
measure the thermistor resistance using a multimeter. You should measure around 10,000 ohms of resistance at room temperature. Replace the thermistor if resistance is off. If thermistor resistance is okay and the wire harness is intact, replace the electronic control board.
Here's the thermistor for your model:
DC32-00007A Dryer Thermistor
Here's the control board for your model:
Assy Pcb MAIN DC92-01729B
Jake