Add stacktrace_id and unique_id to exception messages when appropriate.