add rsync error handling (file-transfer)

add rsync error handling (file-transfer)