Fanshim led not showing in some cases on RPi4b

New here from .au, modded the code from the fanshim examples.

The following code runs well in Thonny (python IDE) on Raspbian RPi4b, when I type Ctrl/C the led if left showing blue.
But when I run it just from the command line, after Ctrl/C, the led stays off? Help! Thanks!

#!/usr/bin/env python3
from fanshim import FanShim
import time
import colorsys
import sys

fanshim = FanShim()
fanshim.set_fan(True)  #fan on
fanshim.set_light(255, 255, 255)  #set white

    while True:
        h = time.time() / 25.0
        #print(colorsys.hsv_to_rgb(h, 1.0, 1.0))
        r, g, b = [int(c * 255) for c in colorsys.hsv_to_rgb(h, 1.0, 1.0)]
        fanshim.set_light(r, g, b)
        #print(r, g, b)
        time.sleep(1.0 / 60)
except KeyboardInterrupt:
    fanshim.set_light(0, 0, 255)  #set blue
    print('Led ended.')

Did you do the from fanshim import FanShim then the fanshim.set_light? You may have to if you haven’t already run any examples prior to terminal session.