bug fix: setInterval would keep going even after tool had been destroyed.
  switched to setTimeout and introduced a 'shutdown' flag.