Do not ignore write errors
Merge pull request #49 from gbarr/write-errors

Do not ignore write errors