Clear componentmgr when scenemanager closes.