Fixed and improved the stack trace sent in the JSON payload