Fix deadlock when cutechess finishes match
More robustness