switch off the agent if it is necessary ( Windows version )