cancel() {
    if (this.panel != null) {
      this.panel.destroy();
    }
    this.panel = null;