The Kill function works just fine in my case. Thanks for your help!