code: private HBCIMsgStatus doDialogEnd() {
          HBCIMsgStatus msgStatus = new HBCIMsgStatus();
  
          try {
              log.debug(HBCIUtils.getLocMsg("LOG_DIALOG_END"));
              passport.getCallback().status(HBCICallback.STATUS_DIALOG_END, null);
  
              Message message = MessageFactory.createDialogEnd(passport, dialogid, msgnum);
              nextMsgNum();
              msgStatus = kernel.rawDoIt(message, HBCIKernel.SIGNIT, HBCIKernel.CRYPTIT);
  
              passport.getCallback().status(HBCICallback.STATUS_DIALOG_END_DONE, msgStatus);
          } catch (Exception e) {
              msgStatus.addException(e);
          }
  
          return msgStatus;
      }
docs: Processes the DialogEnd stage of an HBCIDialog (mid-level API).
  <p>
  Works similarily to doDialogInit().