def force_shutdown():
 func = request.environ.get('werkzeug.server.shutdown')
 if (func is None):
  raise RuntimeError('Not running with the Werkzeug Server')
 func()

def force_shutdown ( ) : func = request . environ . get ( 'werkzeug.server.shutdown' ) if ( func is None ) : raise RuntimeError ( 'Not running with the Werkzeug Server' ) func ( )
stop the flask web server .