class_docstr: Provide a mechanism for Bokeh applications to build up new Bokeh
  Documents.
class_docstr_tok: ["Provide","a","mechanism","for","Bokeh","applications","to","build","up","new","Bokeh","Documents","."]
docstr: Execute code when the server cleanly exits. (Before stopping the
  server's ``IOLoop``.)
  
  Subclasses may implement this method to provide for any one-time
  tear down that is necessary before the server exits.
  
  Args:
      server_context (ServerContext) :
  
  .. warning::
      In practice this code may not run, since servers are often killed
      by a signal.
docstr_tok: ["Execute","code","when","the","server","cleanly","exits",".","(","Before","stopping","the","server","'s","``","IOLoop","``",".",")","Subclasses","may","implement","this","method","to","provide","for","any","one-time","tear","down","that","is","necessary","before","the","server","exits",".","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 code when the server cleanly exits. (Before stopping the
      server's ``IOLoop``.)
  
      Subclasses may implement this method to provide for any one-time
      tear down that is necessary before the server exits.
  
      Args:
          server_context (ServerContext) :
  
      .. warning::
          In practice this code may not run, since servers are often killed
          by a signal.
  
      """
      pass
  
imports: from __future__ import annotations
  import logging
  import os
  import sys
  import traceback
  from typing import TYPE_CHECKING, Any
  from ...document import Document
  from ..application import ServerContext, SessionContext
label_desc: Use image node_id 8 for calling the Handler obj's underlying member method code with example usage: obj.on_server_unloaded(server_context) without return types