Safe hdf5 opener