split return of result with termination of thread