Fix exception handling in command-line programs.
Release 1.0.0