stack trace email output fix.