catch write errors