fix a few minor issues in error handling in ddb_cons_finalize