OSX UI shows window again after its closed, when clicking on Dock icon