Attempting to fix the seg fault on exit that sometimes appears.



This 'may' fix the problem with the random segfault on exit.  I found this conversation:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The problem is fixed in the trunk (by revision 47898) and in the v5.34 patch branch.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To work around the problem you must delete the TTree object before the TFile is closed.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cheers,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Philippe.

about half way down on this discussion thread:

https://groups.cern.ch/group/roottalk/Lists/Archive/Flat.aspx?RootFolder=%2Fgroup%2Froottalk%2FLists%2FArchive%2FSeg.fault%20when%20quitting%20ROOT%20v5.34.00&FolderCTID=0x01200200A201AF59FD011C4E9284C43BF0CDA2A4

and made the appropriate changes.  I have tested it a dozen times or so and have yet to see it happen.  Because it was intermediate before I am not sure whether this fixes things, makes them more infrequent or if this is a sign I should play the lottery.