I haven't done any research on this yet but I was hoping someone has.

I have SRVANY running a kix script that loops continuously. Sometimes on system shutdown, why not all of the time, I don't know, I get the kix error audible beep. It hasn't negatively affected anything yet and there's a very slim chance that it ever would, but it's just not professional.

Q. Is it possible to detect a system shutdown in my loop and exit before the process is terminated and the beep occurs. (without wrapping the kix in anything)
_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.