Generally the visa is issued before the job hence the visa is still valid after the job (assuming it has not expired).
You are talking about a permission to stay extension based on employment, this is what gets canceled.
If the job was with a BOI company you have 7 days to exit the country, if it was not a BOI company you have 24hrs.