you have to leave the country within 7 days after the cancellation of the visa otherwise you will need to get an exit permit from the company and penalty will be 10QR each day.
you can come on a visit visa under your wife and do not need any NOC. she can apply visa for you next day after your departure and once it is approved you can enter.