Added closeLeaf.