How to ensure that my agent gets restarted when I restart my machine?