Trap exceptions and display them without a traceback

Resolves issue #195.