If you finished your contract they are obligued to give you an exit visa and a plane ticket to leave Qatar. If your visa needs renewal your company has to pay for the renewal! Even if you don't want them to renew it and did not finished your contract and wish to leave before the end of the contract they are still responsible to give you an exit visa and a plane ticket but they can refused to give you an NOC!