Improved the asynchronous reading of the rsync stdout and stderr.