Add an option to dump core when an uncaught exception is thrown.
code review feedback