add rsync error handling (file-transfer)