'Shutdown the manager process; will be registered as a finalizer'

@staticmethod
def _finalize_manager(process, address, authkey, state, _Client):

    if process.is_alive():
        util.info('sending    shutdown    message    to    manager')
        try:
            conn = _Client(address, authkey=authkey)
            try:
                dispatch(conn, None, 'shutdown')
            finally:
                conn.close()
        except Exception:
            pass
        process.join(timeout=0.2)
        if process.is_alive():
            util.info('manager    still    alive')
            if hasattr(process, 'terminate'):
                util.info('trying    to    `terminate()`    manager    process')
                process.terminate()
                process.join(timeout=0.1)
                if process.is_alive():
                    util.info('manager    still    alive    after    terminate')
    state.value = State.SHUTDOWN
    try:
        del BaseProxy._address_to_local[address]
    except KeyError:
        pass
