The best way for you to do is to go home, leave your NOC to your new sponsor / company wherein they can file your visa the moment you leave Qatar then come back under the new sponsor visa.