Changed order of removal of result in ThreadService.