def initiate_shutdown(self):
        # Windows does not provide SIGKILL, go with SIGTERM then.
        sig = getattr(signal, 'SIGKILL', signal.SIGTERM)
        # reloader active
        if os.environ.get('WERKZEUG_RUN_MAIN') == 'true':
            os.kill(os.getpid(), sig)
        # python 2.7
        self.server._BaseServer__shutdown_request = True
        # python 2.6
        self.server._BaseServer__serving = False
See :func:`burpui.misc.backend.interface.BUIbackend.server_restore`
dataset/ETHPy150Open Eforcers/gae-flask-todo/lib/werkzeug/serving.py/WSGIRequestHandler.initiate_shutdown--crossover with--dataset/ETHPy150Open ziirish/burp-ui/burpui/misc/backend/burp1.py/Burp.server_restore