Cleanup the layout, add an error page.