Kill is, as it sounds, a brutal way of closing an application. Often it's better to close down more like a user would, eg by closing the main IE window. When restarting you have to be careful not to relaunch too soon, before the previous instance has gone - some apps don't close as fast as you think. The simplest option is to pause before the relaunch, or better still, wait for the detach from the previous instance. The way to do this is to turn in a loop, checking IsConnected every second. When it returns False, go to the End. If you've waited too long and it still returns True, something is wrong.