The answer is no because (1) we need to read it into a string first, (2) we need to have HDF5 reclaim its contents if it *is* valid, and (3) if it isn't valid deleting it will only cause more problems.  I think throwing an error here is correct.