Fix some error handling and tracing issues

Fix #1315
Fix #1314
Fix #1318
Perhaps, Analytics.UnexpectedException should always call Tracer.TraceError.    Or else we have to keep repeating these 2 calls.