I'm not sure what you're asking. This is code of an application that is running, and you want to terminate the execution? From the outside or from within the code? Or is it something else you're asking?
Ping & DNS - updated with new look and Ping home screen widget