Flightsimulator.exe wont close

I had same exact issue and realized something that made a huge difference for me using oculus VR steam install …
What works for me is this shutdown procedure

  1. exit vr mode
  2. quit to desktop
  3. shut down headset
  4. shut down vr app

If I don’t do this in this exact order I get the same safe mode prompt on MSFS startup