restart agent in background after upgrade