A trace path that does not exist (FileNotFoundError), a folder for the
trace (IsADirectoryError) and a ds-request line with a missing field
(KeyError) or a malformed number (ValueError) stopped the tool with a
traceback. Each now prints one ERROR line and exits 2, like
tools/recomp_census.py. census() wraps the unchanged loop and names the
line and the field; main() is split out so it can be tested.
Synthetic traces only; no game files.