In some places in Central Europe and Nordics, some companies has contracts that telhas a penalty if any of the parts terminated before the start day. In one case I signed one that the company of me would pay the total of 3 salaries if any of us terminate the employment agreement in advance.