Seems it's meant to send a 'part message'...
The timer's a waste though, remove the timer and set your settings so the window isn't closed.

Good luck,
ziv.