Thank you for confirming. - it’s great to hear it worked.
I’m adding below once again the correct process for uninstalling and installing the Xbox app and Gaming Services:
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 2020
Source https://forums.flightsimulator.com/t/msfs-2020-will-not-shut-down-fully/717408/650?u=tenpatrol
I’m glad to hear that my suggestion helped you too.
Fly safe!
Happy to help