How to stop the thingworx service.
I have a service which runs a loop and keeps setting the value in a session variable. Service is executed on click of button in mashup by a user. I want to stop the previous thread when the user re-clicks the button.

