Fix txn close.