Close open HDF5 resources