class_docstr: Load a script which contains server lifecycle callbacks.
  
      
docstr: Execute ``on_server_unloaded`` from the configured module (if
  it is defined) when the server cleanly exits. (Before stopping the
  server's ``IOLoop``.)
  
  Args:
      server_context (ServerContext) :
  
  .. warning::
      In practice this code may not run, since servers are often killed
      by a signal.
docstr_tok: ["Execute","``","on_server_unloaded","``","from","the","configured","module","(","if","it","is","defined",")","when","the","server","cleanly","exits",".","(","Before","stopping","the","server","'s","``","IOLoop","``",".",")","Args",":","server_context","(","ServerContext",")",":","..","warning",":",":","In","practice","this","code","may","not","run",",","since","servers","are","often","killed","by","a","signal","."]
code: def on_server_unloaded(self, server_context: ServerContext) -> None:
      """Execute ``on_server_unloaded`` from the configured module (if
      it is defined) when the server cleanly exits. (Before stopping the
      server's ``IOLoop``.)
  
      Args:
          server_context (ServerContext) :
  
      .. warning::
          In practice this code may not run, since servers are often killed
          by a signal.
  
      """
      return self._on_server_unloaded(server_context)
  
file_path: bokeh/src/bokeh/application/handlers/lifecycle.py
imports: from __future__ import annotations
  import logging
  from typing import Any, Callable
  from ...document import Document
  from ..application import ServerContext, SessionContext
  from .handler import Handler
label_desc: Use image node_id 5 for calling the LifecycleHandler obj's underlying member method code with example usage: obj.on_server_unloaded(server_context) and returns: self