Supreme Court rules on termination of employment contracts