What shuts off the gas in the event of pilot ignition failure?

What shuts off the gas in the event of pilot ignition failure?