A closed system is a system that can exchange energy (heat and work)with its surroundings, but can not exchange matter with its surrounding.
A greenhouse to some extent can be thought of as a closed system exchanging heat with its surroundings.
In general, a system is the part of the universe under consideration.
Systems can be isolated, closed, or opened.
An isolated system can not exchange energy, and can not exchange matter with its surroundings.
In contrast, an opened system can exchange both energy and matter with its surroundings.