adjusting thread shutdown some more