Always wait for both threads to finish