Do not launch Shutdown in a new thread in case we are running the UI.