The comment suggests that the intention is to make sure that the server didn't shut down shortly after starting. I will change the code to wait for the process to start, and then give it five seconds and make sures it stays up.