The best description of the thermos system is a closed system.
A closed system does not allow matter to enter or leave, but it can exchange energy (in the form of heat) with its surroundings. In the case of the thermos, the coffee inside cannot escape, but it can lose or gain heat to the outside environment.