I made a few modifications already, so if anyone downloaded the initial 0.1-alpha release, you should download the newer 0.2-alpha release. It now will also exit in other circumstances where the drive goes bye-bye with an exit code of 63 (0x3f). Version 0.1 might not exit and continue with the operation while reading no data. I tested it against ddrescue by dropping the power on a SATA connected drive, and also removing a USB drive and both would exit. But I found that if I pulled the drive off my WD Passport board and left the USB plugged in, ddrescue would hang indefinitely until the USB is removed and then exit, while my program will exit with the error code every time. Have yet to test it on an actual IDE drive, but expect the same results as SATA.
Oops, just realized that it won't mark the chunk as bad in the event of a device fault, that will be fixed in 0.3. But I still need to know if it will exit like it is supposed to on a device fault.