Fixing issue #63.

If running Command Line Tool app `NSApplicationWillTerminateNotification` isn't called, so use `atexit_b` instead.