closing the hdf5 handle here is no longer needed and created an error