If you want to leave the country, before that you must cancel your wife's visa. Otherwise you cannot get the exit permit.