In the first 90 days after your work permit expires, you can request to have it restored. You can stay in Canada until you receive additional instructions, but you must cease working until your work permit is restored.