Global editor actions

Close the current window.
If this is the last window open, quit the program.
CONSIDER: call quitEditor when there are no other window in the interactive function.
(Not possible since the windowset type disallows it -- should it be relaxed?)