Added wait_for_unloaded to manager.