Disable fork join when one of the tasks complete

In reply to kddholak:
Your code does not work. The thread that you kill will already be completed.