Adding ways to check thread completion

* Experimenting with countdown latch