The keyboard combination
Alt+F4
closes a program.