Hey, thanks ! I'll add that to my script, because that gets rid of the "End Application" problem.
The service-solution works too !! Thanks, guys

Still having that detecting problem, though...