raise error and rollback when rsync to remote failed