The
cpg_finalize
function is used to close a connection to the closed process group API.
Once the connection is finalized, the handle may not be used again by applications.
No more callbacks will be dispatched from the
cpg_dispatch function.
RETURN VALUE
This call returns the CPG_OK value if successful, otherwise an error is returned.