Added additional logic around pkill operation with respect to PHP invoked scripts.