improved daemon restart with deathInterval check