I cannot come up with any counter examples as to why a function would need to be both closed and bounded to be uniformly continuous. Why is it not sufficient to just have one condition?
For example, if something is bounded, then it can't dramatically increase constantly and thus would be uniformly continuous no matter if it was closed or not.
Similarly, if something was closed but not bounded, a delta could be found where all differences between points would be within all epsilon greater than 0.
Let $f\colon[a,b]\longrightarrow\mathbb R$ be a continuous function. Then:
Note that I did not need to assume that $f$ is uniformly continuous for this.