add atexit example program