added context around the waitPid that monitor runs with the current context of PID that we are checking for so that we can compare when waitpid issues callback and can perform comparison between waitPid value and the current service.instance PID value