Made BTree.close() verify cache exists before doing stuff with it...