ztree close before cleaning