If WriteImpl was not able to write, add option to return a negative result.
If WriteImpl was not able to write, add option to return a negative result.