Improving uncaught exception logging message

Previously the logging message was not using the traceback information. This is useful info that we would like to log.