ensured that the last frame of a program will be rendered after a halt