there is a whale of difference between an agreement and a visa. If your employment agreement was similarly cancelled or terminated before the term ended then run after the agent-representative. The agency agreement between the employer and the agent makes the latter jointly and severally liable in law for any illegal acts of the principal-employer...

the issue as you presented appears to me as mere cancellation of your "engineer's visa". it might be that your employer is replacing it with a doctor's visa! (LOL)..