There's also a reason why every contract has a severability clause. There are certain things you cannot legally do, even if you have a contract saying you can do them. This is pretty close to that border IMO, but such situations really come down to the judge.