If we wrap a log file before the previous one closes, wait instead of
asserting failure. #1302