Catch and display thrown exceptions without bailing out. Fixes #9.