exception handler and reporting.