handle error when saving settings to couchdb.