clearing timeouts properly