PDIO-145 Fix stuck iteration end and add sub-process summary