don't use deprecated g_atexit