Return trace array instead of trace as string
Add previous to exception array