Fixed some memory leaks causing the timers to run endlessly after app
closes. Still fixing some reset bugs.