A bad agreement is better than a good lawsuit.