Yes you can leave there is absolutely not problem with that... Just so you also know that you cannot have a RP in another GCC country without a cancelled or expired RP