Fix broken exception reporting