shutdown: thread management
shutdown: thread management