Added SystemExit at CC end. To avoid further errors due to bad curves. Temporary fix.