Set the lights as the IFUSED of the terminal.
Then in the terminals destroy script, you can activate the lights before it destroys the console.
Once activated, the lights can flicker according to how you script them for that activated condition.
If noneof this makes sense, then read the Manual that came with FPSC in your Dosc folder.
Then read Nickeydude's Hints & Tips Guide sound in the stickies. (the threads 'stuck' at the top of the forum)
Once you understand the basics of the FPI scripting language, then a task such as this will be easy to do.