Fix process termination when write-sources fails writing a file.
Fix process termination when write-sources fails writing a file.

Signed-off-by: Tylerian <e9ba3d3a5fcb656b3ac7d8b8abca955fe7ff3b88@jairo.me>

paazmaya/shuji