Added printing of exception to stdout.
Merge branch 'print-stack-trace-on-error' into ultra-and-env
Fixes ULTRA arithmetic error. Also, prints stack traces to both stdout and stderr.