@Metta ******
visas and extensions do end if you leave the country, but you're still required to cancel the extension if you're on ED or Non-B extension.
Only if you're on an extension though as you cannot cancel a visa and you didn't sign a form saying you agree to cancel when you get a visa, only an extension.