Check your contract.

Qatar rent law states that if you can show proof of the cancelation of your RP then you are not liable.

If you have to leave the country for good, you have to cancel your bank accounts, if you cancel your bank accounts your rent checks would bounce anyways.

You might have a hard time getting the deposit back but other than that you should be OK