dryer runs/no heat/gas smell

The dryer starts to run correctly then the flame goes out but the gas stays on and discharges through the dryer vent. Any ideas???

Thanks, Steve

I have to turn the dryer off. I’m going to change the coils to see if that helps.