Disconnecting from the server

After your application has finished interacting with the Helix Server, it must disconnect as illustrated below:

client.Final( &e );
e.Abort();

To ensure the application can exit successfully, make sure to call ClientApi::Final() before calling the destructor.