Added additional processing of exceptions so that by default it only returns a summary of the trace rather than the full object (which sometimes breaks when the header is too big for firefox).