On platforms except CUDA, app has to run with LD_PRELOAD to use xsched. Thus in apps which call exec (i.e. x11_launcher), there will be two g_sched_agent with the same pid due to reloading of shim lib, which may cause error in the global scheduler when exiting.