The flame on your gas fireplace can go out for a variety of reasons. It could be that the pilot light is malfunctioning, or there's a lack of air in the burner. The best way to make sure your flame stays lit is to close the chimney damper and turn it off for about 10 minutes so all of the excess fuel can burn off.