I had my engine light come on while riding, following by surging, and finally the clutch cable going completely slack, down to hand grip. If the clutch cable were to loosen, would that trigger an engine default? The engine starts and runs fine when not in gear, any suggestions what is most likely happening?

Thanks