Handle Stop Requests
A connector can be requested to stop at any time. For example, the connector might be running as a service that is stopped, it might receive an action=stop
command to its service port, or a user might press CTRL+C in the connector’s console window.
The sample code calls the stop()
method on the SynchronizeTask
between each