ofXml: fix close method