There are gas valves that will automatically close in a quake. They're not cheap, but in an earthquake vulnerable area, i.e. the Coachella Valley, it would be a good idea to retrofit your house with one.
_________________________
Hope for the best and prepare for the worst.

The object in life is not to be on the side of the majority, but to escape finding oneself in the ranks of the insane