Improved exception logging for document write conflicts