Use Parallel::Break exception in both threads and processes.