add TraceWriter to allow reporting of .NET exceptions.