A better cleanup after the default render.