How to add Scripted Plugin Rollout's to subrollout


I have created a scripted plugin which has few rollouts in it, now i was searching for a way to display this rollouts in a rollout floater.

Currently the way i am doing this is i have created a local array variable say "X" in the plugin and then i am adding all the rollouts to this variable.

Then i am using this to add those rollouts to the subrollout in my rolloutfloater

for ro in X do addsubrollout rolloutXYZ ro

when i do this, the rollouts work fine for the first time, but when i remove them and add them again, then i get Unknown Exception Error display's.

Can anyone guide me on this !!