Fix ledger closing in robust-transaction-test