Fail if we can't write the output.