The most accurate definition of a closed system, particularly in the context of physics and thermodynamics, is:
A system in which no external forces are present nor can energy be put into or removed from the system.
This definition emphasizes that a closed system does not exchange matter with its surroundings, though it can exchange energy. For clarity, a closed system allows for energy transfer (in the form of heat or work) but not matter transfer.