frankly speaking you need to cancel your visa before leaving qatar if you will be working in GCC country. you will have a big/tremendous problem in other GCC country if your RP is not cancelled here in qatar as it happened to my friend. he went back to abu dhabi at his own expenses just to have his visa cancelled before he was able to obtain visa in qatar. no problem if you will not be working in other GCC country.