As I mentioned above there's no possible issue related to low memory.
My rig is based on an i7-5930k, Asus X99Deluxe MOBO, Asus GTX970 4GB VRAM (driver 364.72) and 16 GB DDR4 Corsair RAM: all in all a very robust system I am very pleased with.
For instance, with the default Cessna 172 and KSEA scenary with SMP3.1 set at its defaults and my favuorite rendering options it reports 1799 MB of video and 9200 of system RAM.
Even in this case the XPlane session hangs when quitting, no error in the log to investigate further.
As another example with the latest FF 767 and the payware EGCC the load leaves available 650 MB of VRAM (we are somehow close to the infamous 3.5 limit of the 970, the last 500 MB are to be avoided to keep good performances) and 8900 MB of system RAM
As I already said any aircraft/scenary combination does not matter, XP always hangs when quitting.
Instead everything works fine with previous 3.0, with lot of active plugins and any demanding or basic scenary, and so at last I downgraded to that version (I love to sim-fly, not to debug sw).
However I am very disappointed that I won't be able to install, when available, the new weather connector since SMP3.1 is a requirement. Now I know how to get good performances (some tweaking) and recognized that some nice enhancement has been implemented but no way to quit a session.
I fear there is nothing I can do.