symboldb: reorganize exit status handling