You thank them for the lesson of always collecting at least half up front.
ha, yeah the "expensive lesson" framing is real. 50% upfront helps a lot but you still have the other 50% hanging out there after delivery. i've talked to freelancers who collect 50% upfront religiously and still get ghosted on the back half. it's better than nothing for sure though. the real question is what happens between "files sent" and "final payment received"... that gap is where things go sideways.