When the employer breaches the deal by terminating the employee prior to it ends, it may be regarded as wrongful termination. The terminated employee need to consult with a lawyer to discuss their selections.
samples https://jmllaw.com/areas-of-practice/employment-law/wrongful-termination.shtml