simulate Kafka server's policy of startup and shutdown. Using CountdownLatch