Added handling for likely write errors that shouldn't be treated as bugs.
Corrected read error handling.
Authored by: delphidabbler 2012-07-12
Parent: [r2044]
Child: [r2046]