Efficiency of an engine:
Performance coefficient of a refrigerator:
Both a heat engine and a refrigerator must have an exhaust. This loss is an inescapable fact of thermodynamics.