close button should hide the window instead of quit on osx