you can close the opengl window with esc, which also ends program execution