@Richard ***********
, do it about a week before hand. Go cancel your work permit, take that and your termination letter form your company (that is dated stating your last day is the day you're leaving), to the immigration office, they'll cancel your extension and stamp you in until that date and then you can just leave.