What planet isn't a closed system but sometimes appears to be because of the approximate conservation of matter?
However, matter is not conserved in such systems, although this is not obvious in ordinary conditions on Earth, where matter is approximately conserved.