In a situation like this though, it can probably be thrown out for lack of consideration. You'd also probably have a decent suit for damages as well: if a company hires you with a non-compete and then dumps you on the street because it can no longer meet it's contractual obligations to you, but still prevents you from earning a wage through an onerous contract (which they unilaterally terminated) causing real damages to your lifetime earnings.