Yes, the equilibrium must be in a closed system. This means no matter (gas, liquid, solid, whatever) can get in or out. A school classroom wouldn't be considered a closed system because there are gaps between doors, windows are open, aircon vents, etc.
It has to be closed, very closed. :p