TRY.
1 Uninstall Gaming Services
2 Uninstall Xbox app
3 Restart PC
4 Open Microsoft Store app
5 In search bar type Xbox and click Xbox app
6 Install Xbox app
7 Open Xbox app
// Once you launch the Xbox app, please wait for the update process to complete, during which the Gaming Services will also be installed.
8 After the update process has finished, customize the Xbox app to your preferences and make sure you’re signed in.
9 Launch MSFS 2024
Source https://forums.flightsimulator.com/t/msfs-2020-will-not-shut-down-fully/717408/664?u=tenpatrol