Wait for remote threads to finish