Handle return in parallel threads/processes.