you have to use Kill Process for this, to find out the process you can use either FindWindow or something like that...just search for Kill process, you will hit a lot of examples and codes...