Ya, you need more accurate checks on your handles.
Handles are fairly annoying and just to note KillTimers does not close the handle, it just stops the timer.
You need to change KillTimers to CloseHandle and also check if the handle has been defined and when the timer is executed empty it.
Handles are is a lot of fun.
*sarcasm*