1141719: purges the output stream of previous errors before retrying ssh command to avoid the confusion of logging accumulated errors rather than just the output from the most recent command