wait for 'close' in latestSHA to eliminate race condition