Terminate the Agent

Just before the application exits, terminate the SDK:

appd_sdk_term();