Wait for workers to finish by using CountDownLatch