try-finally blocks in BTree to have best effort at deleting as many
resources as possible even if one fails
Use try-with-resources in HashFile