This should be in a finally block or it will cause orphaned threads to remain if something happens while submitting in the for loop.