Rainbow HAT lights going crazy on Python exit

I’m running into an issue where if I use the rainbowhat Python library, the rainbow lights all turn extremely bright and blink through random colors nonstop as soon as Python exits. This even happens with the most minimal example possible, python -c "import rainbowhat":

Any idea what’s going on? This makes prototyping with the board super annoying because every time I update my script and restart it I get blinded with the force of 100 suns.