Fixes #201. Fixes crashes when quitting DREAM3D on OS X.