Killing processes from script isn't working