# 17.2.3. PMIx_Finalize

PMIx_Finalize - Finalize the PMIx Client

## 17.2.3.1. SYNOPSIS

    #include <pmix.h>

    pmix_status_t PMIx_Finalize(void);

## 17.2.3.2. DESCRIPTION

Finalize the PMIx client, closing the connection with the local PMIx server.

## 17.2.3.3. RETURN VALUE

Returns `PMIX_SUCCESS` on success. On error, a negative value corresponding to a PMIx `errno` is returned.

## 17.2.3.4. ERRORS

PMIx `errno` values are defined in `pmix_common.h`.

See also

PMIx_Abort(3), PMIx_Commit(3), PMIx_Init(3), PMIx_Initialized(3), PMIx_Put(3), pmiAddInstance(3), pmiAddMetric(3)