Upon restart of the agent, Job Status is fail if the script of command finished while the System Agent is down on Windows