Make sure assets are disposed by centralizing asset manager creation and disposal.