docstr: Used to exit the application.
  
  Private method.
  
  .. deprecated:: 1.9.0
      This function is deprecated and will be removed in 2.0.0. Use :meth:`stop` instead.
docstr_tok: ["Used","to","exit","the","application",".","Private","method",".","..","deprecated",":",":","1.9.0","This","function","is","deprecated","and","will","be","removed","in","2.0.0",".","Use",":","meth",":","`","stop","`","instead","."]
code: def _exit(self, end_msg: str = "") -> None:
      """Used to exit the application.
  
      Private method.
  
      .. deprecated:: 1.9.0
          This function is deprecated and will be removed in 2.0.0. Use :meth:`stop` instead.
  
      """
      warnings.warn(
          DeprecationWarning(
              "This function is deprecated and will be removed in 2.0.0. Use `LightningFlow.stop` instead."
          )
      )
  
      return self.stop(end_msg=end_msg)
  
imports: import inspect
  import warnings
  from copy import deepcopy
  from datetime import datetime
  from types import FrameType
  from typing import TYPE_CHECKING, Any, Dict, Generator, Iterable, List, Optional, Tuple, Union, cast
  from deepdiff import DeepHash
  from lightning.app.core.work import LightningWork
  from lightning.app.frontend import Frontend
  from lightning.app.storage.drive import Drive, _maybe_create_drive
  from lightning.app.storage.path import Path
  from lightning.app.utilities.app_helpers import _is_json_serializable, _LightningAppRef, _set_child_name, is_overridden
  from lightning.app.utilities.component import _sanitize_state
  from lightning.app.utilities.exceptions import ExitAppException, LightningFlowException
  from lightning.app.utilities.introspection import _is_init_context, _is_run_context
  from lightning.app.utilities.packaging.cloud_compute import CloudCompute, _maybe_create_cloud_compute
label_desc: Use image node_id 19 for calling the LightningFlow obj's underlying member method code with example usage: obj._exit(end_msg) and returns: self