For example, if you're cooking the dish you want to flambé on a stovetop, first turn off the stove or at least move the pan away from the fire before adding alcohol to the contents and lighting it.