Discrimination law does not apply to the self-employed. Nor does any other employment law. They can have their contracts terminated whenever the client wishes, given whatever notice period is specified in the contract. Which can be no notice, if that is what the contract says.