direct: Move cleanup handler calls to atexit handler to be called before destructors.
direct: Move cleanup handler calls to atexit handler to be called before destructors.

djbclark/directfb-core-DirectFB,jcdubois/DirectFB,dfbdok/DirectFB1,kevleyski/DirectFB-1,lancebaiyouview/DirectFB,DirectFB/directfb,deniskropp/DirectFB,deniskropp/DirectFB,DirectFB/directfb,sklnet/DirectFB,kevleyski/directfb,kaostao/directfb,dfbdok/DirectFB1,dfbdok/DirectFB1,kaostao/directfb,deniskropp/DirectFB,Distrotech/DirectFB,mtsekm/test,Distrotech/DirectFB,kevleyski/directfb,DirectFB/directfb,kevleyski/directfb,mtsekm/test,sklnet/DirectFB,kevleyski/DirectFB-1,djbclark/directfb-core-DirectFB,jcdubois/DirectFB,sklnet/DirectFB,deniskropp/DirectFB,lancebaiyouview/DirectFB,kevleyski/DirectFB-1,kaostao/directfb,lancebaiyouview/DirectFB,kevleyski/DirectFB-1,djbclark/directfb-core-DirectFB,jcdubois/DirectFB,djbclark/directfb-core-DirectFB,Distrotech/DirectFB,lancebaiyouview/DirectFB,sklnet/DirectFB,kevleyski/directfb,mtsekm/test