illegal termination of contract