Adding in Logging for uncaught task exceptions.