@Mar***
you are on an EXTENSION (not a visa)
To officially cancel it you go cancel your work permit at the Ministry of Labour, then take that receipt and your termination paperwork to the immigration office where you got your extension
they will cancel your extension stamp and stamp you in until the date on the termination paperwork. THEN you can leave thailand on that date..