Added destroyRoots() for clearing out a UI.