If it's a single entry, it will get cancelled automatically once you leave the Kingdom. At least I can vouch it worked like that for me in the past, but I didn't extended it in country, tho.
It might be due to being soft power. I wonder what would happen once you finish the classes? I mean, I know that in theory the visa is good for 5 years, but, at the same time, it's granted on something that might not last for 5 years 👀🤷🏻