code: synchronized void deactivate() {
          paused = false;
          if (activeTask != null) {
              activeTask.cancel();
              activeTask = null;
          }
          this.threadPool = null;
      }
docs: Deactivate the controller. Any scheduled tasks will be canceled.