def cleanup():
    """Cleanup function to terminate all bot processes.

    Called during server shutdown.
    """
    for entry in bot_procs.values():
        proc = entry[0]
        proc.terminate()
        proc.wait()
Cleanup function to terminate all bot processes.

    Called during server shutdown.
    
examples/simple-chatbot/server/server.py