Nonsense. Lots of contracts can last after you stop being an employee, e.g. Non-compete contracts, non-disclosure agreements etc. If the employee leaves the day before their final salary payment is due, does that mean the company is no longer legally obliged to pay them? No.