[fold] Tweak Ledger.h to emit closed before open