Installing a new dryer controller, the controller indicated a flame in the dryer. Employee confirmed the presence of flame in the dryer. While attempting to close the main propane supply valve, the valve cracked and broke. Propane escaped and was ignited by the flame in the dryer. 1st and 2nd degree burns to arms and face.