@Subramaniankannan - "Expats who leave Qatar and have had their employment and Residency Permit terminated, will be able to return to Qatar to take up employment immediately after being granted a new visa"

In short you can easily resign & leave the company now & come back on a new visa on any day, because you are now on an UNLIMITED CONTRACT. No one can block you entering Qatar in a new visa for sure !