you can exit uae if the bank you have loan with is not the bank where your salary is going through each month. because your company will deosit into your account your final settlement check, and they will then be aware that you aredisconnected with your company, therby will alarm the immigration, but if the bank is not where your salary is going to each month, the will have no idea that you will be leaving on exit visa only.

you can exit uae without any problems with exit-re entry visa, however, if you are lanning to work in qatar , it is required that your uae visa be cancelled before you can be given a doha residency visa