fixed an issue with timer threads not being released