code: def stop(self, wait=True):
          ''' Stop the Bokeh Server application.
  
          Args:
              wait (bool): whether to wait for orderly cleanup (default: True)
  
          Returns:
              None
  
          '''
  
          # TODO should probably close all connections and shut down all sessions here
          for context in self._applications.values():
              context.run_unload_hook()
  
          self._stats_job.stop()
          if self._mem_job is not None:
              self._mem_job.stop()
          self._cleanup_job.stop()
          if self._ping_job is not None:
              self._ping_job.stop()
  
          self._clients.clear(f stop(self, wait=True):
          ''' Stop the Bokeh Server application.
  
          Args:
              wait (bool): whether to wait for orderly cleanup (default: True)
  
          Returns:
              None
  
          '''
  
          # TODO should probably close all connections and shut down all sessions here
          for context in self._applications.values():
              context.run_unload_hook()
  
          self._stats_job.stop()
          if self._mem_job is not None:
              self._mem_job.stop()
          self._cleanup_job.stop()
          if self._ping_job is not None:
              self._ping_job.stop()
  
          self._clients.clear()
docs: Stop the Bokeh Server application.
  
          Args:
              wait (bool): whether to wait for orderly cleanup (default: True)
  
          Returns:
              None