action to terminate a contract