Fix atexit() warning