support killing timer in the end.