aviocat: Check for output write errors