It's fairly straight forward to cancel your mobile contract if you want to switch supplier, or on leaving. Take your phone and your passport to the local AIS shop and ask them to change it to pre-paid.
Settle your outstanding bill, and buy a top up to keep your phone and current mobile number active until you leave.

Unless you want to keep your movements secret, or do a DJPat runner without paying.