Airing dirty laundry is in some jurisdictions a legal offence. Which is exactly why there needs to be agreement spelled out in contracts upfront, that this could happen, and the client would just sign it.
And I am a fan of smart contracts and cryptocurrencies, see my suggestion below: