I’m sure you are aware of the report that X-Plane generates when it exits, even if it doesn’t crash. The “log.txt” file has a lot of useful information in it, including any addons thtat are loaded at the time, and really helps work out what was the last thing to execute before it crashed.
What would stop this being emulated in MSFS?