close window on last pane

fixes #863 

Sets this behavior as the default.