Changed how exceptions are logged to analytics