improving robustness of windows remote client by implementing logic to detect failures of the subprocess and using retry/reconnect logic