How to stop hot air from engine compartment?

or the heater valve in the engine compartment is not closing and letting the hot water flow though the heater core
basic heat/defrost only builds don't have a water cut off. A lot of owners install a hand operated ball gate valve in a heater hose for the warm weather months.