Terminate the Agent

Just before the application exits, terminate the SDK:

CODE
appd_sdk_term();