Fixed exception reporting.