A valve for preventing the flow of fluid when the temperature of the fluid is above a predetermined threshold, the valve including: a body having at least one opening for allowing the fluid to pass when the temperature of the fluid is below the predetermined threshold and a shape memory or bi-metal actuator for substantially closing the at least one opening when the temperature of the fluid is above the predetermined threshold to prevent the fluid from passing.