Where I live, if an employee want to terminate his employment, then he has to remain in the job for a certain a notice period (depends upon the T&C). It can be a few days, or it can be a few months.
Where I live, that is convention, but it would be very strange if walking out of your job meant you were kidnapped at gunpoint and put in a cage. That sounds a little less like employment and more like something else...