Make default end_frame() implementation more useful.