atexit() isn't really appropriate for a library.