OSX support for closing / opening apps