Switch from H5close to H5garbage_collect to avoid crash