Some threads are blocking each other during running. Ends up with program completing, but a couple of threads remaining in the background not doing anything.