It might have cost a lot more if direct debits bounced or you were late paying suppliers and you lost settlement discounts or incurred interest.
Congratulations on getting paid, I'm sure it's a weight off your mind. Just take it as school fees and learn the lessons on how to avoid ending up in the same position in future.
He has another two first-fix installations to complete, and then on to 4 second fixes!!
Time to clarify terms of stage payments with this developer, or you may just fall foul of your suppliers terms and conditions of sale, especially when it comes to second fix payments!!