Hi,

Since your goal is to "do some action before the termination of the lightsreamer", I will answer to a slightly different question, that is:
"Is there anyway to detect if the lightstreamer...