Added cancelling to SyncDiscoveryService.

Related to issue #406.