QUESTION: Let $X$ be a topologically complete metric space and $T:X\to X$ a continuous map. Let $x\in X$ be a point whose orbit is a closed set. Show that either $x$ has an iterated that is periodic or $\omega_T(x)=\emptyset$.
I tried to do it by exclusion: if $\omega_T(x)=\emptyset$, then no iterated of $x$ is periodic and, if $\omega_T(x)\neq\emptyset$, I want to prove that an iterated of $x$ is periodic, but I couldn't do it.
Can someone help me?