You could go the thermocouple and solenoid gas cut off route. No flame = no more gas flow just like in the stove or hot water heater in millions of homes across America. If you wait until you notice a temp drop, you will already have a very dangerous buildup of explosive gas.
I should probably look into that, if you or anyone has any info on a set-up Please send it to me! Thanks!