Add fault tolerance to sendfile