thanks at @Allister for the work around which helps me out to continue developing my script? @Fox the success number action should be able to track number of successful threads irrespective of were the action is being used in the main function or when call function in several threads action is used.
If I am running a script and one thread fails, the data used for it will disappear from the source and I cannot see which one has to be reused.
There is no way to know which data was taken, 'cause the thread had deleted all things used before. But u could log data used before the thread will be crashed.