lib: fix exit handler when multiple handlers are registered
lib: fix exit handler when multiple handlers are registered

Signed-off-by: Imre Deak <fbd5edba1988036c8923f0cca0cce6ac4811db29@intel.com>
Signed-off-by: Daniel Vetter <c1b6782c4af8f0673da8923a0702a1832e5940f4@ffwll.ch>

erikarn/intel-gpu-tools,rib/intel-gpu-tools,tiagovignatti/intel-gpu-tools,dlespiau/checkmate-test-igt,erikarn/intel-gpu-tools,chenxianqin/intel-gpu-tools,chenxianqin/intel-gpu-tools,dlespiau/checkmate-test-igt,erikarn/intel-gpu-tools,dlespiau/checkmate-test-igt,dlespiau/checkmate-test-igt,mv0/intel-gpu-tools,mv0/intel-gpu-tools,tiagovignatti/intel-gpu-tools,erikarn/intel-gpu-tools,rib/intel-gpu-tools,tiagovignatti/intel-gpu-tools,mv0/intel-gpu-tools,mv0/intel-gpu-tools,rib/intel-gpu-tools,chenxianqin/intel-gpu-tools,yipdw/intel-gpu-tools,rib/intel-gpu-tools,yipdw/intel-gpu-tools,yipdw/intel-gpu-tools,yipdw/intel-gpu-tools,tiagovignatti/intel-gpu-tools,chenxianqin/intel-gpu-tools