chore(test): remove unused code
feat: kill thread after task finished
feat: kill thread after task finished