add exception reporting