Check if the window was not destroyed

before creating and destroying new timers