macos shutdown consistent behavior