tools/hv: Check for read/write errors