rootPid and treeHeight now stored in pid 0 after close and retrieved after open