DDLog: calling atexit_b in CLI applications, that use Foundation framework.

Related to #63, #184. Fixes #233.