When the employer breaches the contract by terminating the employee before it finishes, it could be viewed as wrongful termination. The terminated staff ought to talk to a lawyer to discuss their solutions.
in the https://jmllaw.com/areas-of-practice/employment-law/wrongful-termination.shtml