HHH-5222 test fix: em2 should be closed before we do latch.countDown()