Interrupt `Threads.@threads` computation

There are other similar recent threads, for instance this one: How to early return from inside a @threads loop - #7 by lmiq

Personally, if the condition in the final thread is not an error, I would not use a try block. As in the example above, I prefer to control the tasks per thread and terminate them cleanly by using a flag (atomic or locked).