Fix rsync session terminating