Implementation of awaitTermination() for DistributedExecutorServiceImpl