What if the contract is illegal and unenforceable? Then they aren't really obligations are they?
I've certainly done this. Signed a contract, with provisions that I knew were 100% illegal, and then months later, after I left and they tried to enforce the contract, I told them to fuck off, because the contract was unenforceable and they knew it.