setting expiry time properly.
Pass correct service id for termination.