Re-added join() to each of the daemon threads