Been a while since I've run it in production but I didn't have any window open that a user could see (back around 4.2x days as I recall.

Try an all new hand coded script (not a kgen version) and see if it still happens for you on a minimal script.