Fixed KitDLL cleanup