Fixed assetManager.unload() bug while program is closing