exit 0 for osx