Fix issue with exceptions thrown by methods stopping a visit