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