Your extension ends the same day as your work permit. Once HR department submit documents to cancel your work permit, you should leave within same day, or apply for extension of stay which will be denied and given 7 days instead to leave the kingdom.