private onRequestClose(): void {
    if (!this.transform) {
      this.proceedToNextPage(null)
    } else {
      this.transform.end()