Adding better exception reporting.