public void stop() {
        if (this.task != null && !this.task.isDone()) {
            this.task.cancel(true);
            this.task = null;
            BmLog.info("ConnectionController is stopped");
        }
    }