[JENKINS-25727]

I'm not entirely sure if this is the cause, but it is indeed possible
that the process ends between the exit code file check and the process
liveliness check. This fix resolves that race condition.