I don't know how the government works but I got a closed work permit and then relocated to US so the Canadian employment ends before the expiry date on the permit. However, I am still able to crossing Canada-US border with that permit. CBSA never questioned about my employment.