Standardize exception handling in command-line tools.