I assumed that while the shutter was open, no other action would be
taking place or would be prevented from happening. At any other time, the timeout case doesn't execute.
I would probably separate the shutter action into its own loop and event structure to isolate it from the rest of the control events if that is not the case.
Randall Pursley