Fix exception handling in ArgsParser