Check if windows was not destroyed

before creating and destroying timers