internal panicky to capture all write errors