Update error message levels
Add and use flushbuffers function
Try to write configs to minard if couch write fails