I guess you missed out something while writing this post. Once, the QID is cancelled by your company and you exit Qatar, the contract has no value or meaning. You can leave Qatar without a worry once your RP is cancelled by you employer.