Fixed write errors not bubbling up correctly
Merge pull request #31 from jblazquez/master

Fixed write errors not bubbling up correctly