It is, unfortunately, completely legal unless your contract guaranteed employment for a fixed period of time, which time has not yet expired. In the absence of a contractual guaranty of work, an employer or company can terminate employment, including as an independent contractor, at any time, for any reason, including that the worker's spouse is a felon. Criminal background, whether of the worker or her spouse, is not protected under the law; you can be terminated for this reason.