finish Timer and TimerThread