What is the best method for puttting out a fire in a frying pan?

The correct answer is "Put a lid on it to deprive the flames of oxygen."