Clean up the tree