It would be great to provide a mechanism to terminate all pending tasks and wait for the current one to complete.
Essentially complete the current executing jobs (since I'm not sure it's possible to terminate spawned threads). And then don't proceed doing any more work.
At the moment this is not possible.