fixed crash at exit
Merge pull request #1684 from civanch/geant4-10-dest

fixed crash at exit