added code for cancel method to trigger stopping of service

use cancel if the vc that called the service may be nilled before the
service returns a response