Exercise 110.33.9. (This is pretty hard.) Given an example of a scheme $X$, and open subscheme $U \subset X$ and a closed subscheme $Z \subset U$ such that $Z$ does not extend to a closed subscheme of $X$.

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).