quitting workaround for mac