Add exception stack traces to xml