def is_shutting_down():
 with __shutdown_mutex:
  shutting_down = __shuting_down
 return shutting_down

def is_shutting_down ( ) : with __shutdown_mutex : shutting_down = __shuting_down return shutting_down
returns true if the server is shutting down .