Fix: Make DaemonsProctor more resilient and add specs

Change-Id: I5aa5ae1a8135f88c06ca43569dcd13dafe8721d8