killing timer on window exit