Fix for reporting exceptions.