Decrement thread count when they exit.