If the employer breaches the contract by terminating the worker ahead of it finishes, it may be deemed wrongful termination. The terminated worker must consult with an attorney to debate their options.
The Genie https://jmllaw.com/areas-of-practice/employment-law/wrongful-termination.shtml