We are using spot instances in the network. Spot instances could be shut down anytime. The agent should start automatically when the spot instance is started.