Issue #31 fixed:
We were ignoring return value of `write'!