That would requires stop() to be inside `Extract extends TimerTask` class inside the Timer thread, it's a little more complicated to invoke a method inside a different class.