thinking in java Concurrency complete terminating tasks section