refactor log thread destroy