don't crash with no buffers, and clear the screen on exit