Print a stack trace when the interpreter sees an exception.

Fixes #812