Print a stack trace when the interpreter sees an exception.

Set the process.exit code to 8 on error
Fixes #812

Reviewed on #814.