Fix crash on exit in ~InboundLedger