Termination of an employment contract must be lawful (contractual law) as well as fair (labour law). The employer cannot choose one and ignore the other.