Cleanup tree.