< TeX
\end
\end ends the current TeX document. \end is not recommended because it is low-level and conflicts with LaTeX.
Should I use \bye instead?