add thread_group for servers and complete destructor