A method for controlling a closed circuit operating on a Rankine cycle, the circuit comprising at least one compression and circulation pump with an inlet and an outlet for a working fluid in liquid form, a heat exchanger over which a hot source is swept in order to evaporate the fluid circulating between an inlet and an outlet of the heat exchanger, means for expanding the fluid into the form of a vapor, a cooling exchanger swept by a cold source to condense the working fluid circulating between an inlet and an outlet of the cooling exchanger, a reservoir of working fluid, and working fluid circulation pipes for circulating the fluid between the pump, the heat exchanger, the expansion means, the condenser and the reservoir, wherein in the event of an emergency shutdown of the circuit, the fluid contained in the heat exchanger is transferred to the part of the circuit between the upstream side of the pump and the reservoir.