teardown Connection
Close the connection and free all associated resources.
Parameters
device Id
The deviceId associated with current connection. The deviceId
can be obtained by calling getDeviceId()
or from the payload in the ProgressEvents.Events.Disconnect
event