better error handling on the writer side.