Dynamic Container Looping -- How to End the Protocol

Hi,

I have been using dynamic containers to flip through a series of compound profiles and registering a progression decision...the setup is much like the update XY plot via dynamic containers example.  My problem arises when I come to the last compound...it goes to read the data, but of course there is none remaining so it just crashes out.  Is there a way to end the looping?

This is especially important for webports as the protocol must end for the output files to be displayed in a tab.

Thanks,

Eric