Close leaking HDF5 resources