The Disconnect Method

The Disconnect method stops a stateful XMLSERVICE connection, ending the toolkit job. Don't do this unless you really want the job to end. It's usually better to use the idleTimeout option so that the jobs only end after a timeout.

$ToolkitServiceObj->disconnect()