Catch exception from `H5Fis_hdf5`

Oh, it seems the solution is posted here.