Add @kwmsmith's fix for atexit cleanup errors.
Merge pull request #414 from enthought/bugfix/atexit-cleanup-errors

Add @kwmsmith's fix for DistArray.__del__ errors.