Added retry + sleep for startup of server check pid