Trying to kill all the threads when one check is successful