modify updateDBDocs to handle Error: socket hang up

to fix when "compact during multi-db update" test on android terminated