make the agent startup a bit more resilient