code: def OnExit(self):
      stop_java()
  
      return 0
  
file_path: CellProfiler/src/frontend/cellprofiler/gui/app.py
imports: import platform
  import sys
  import sentry_sdk
  import wx
  import wx.lib.inspection
  from cellprofiler_core.preferences import get_telemetry_prompt
  from cellprofiler_core.preferences import get_telemetry
  from cellprofiler_core.preferences import set_telemetry
  from cellprofiler_core.preferences import set_telemetry_prompt
  from cellprofiler_core.utilities.java import start_java
  from cellprofiler_core.utilities.java import stop_java
  from .dialog import Telemetry
label_desc: Use image node_id 3 for calling the App obj's underlying member method code with example usage: obj.OnExit() and returns: int