Do not crash if connection is closed while sending a file using sendfile

file:sendfile/2 may return {error, enotconn} if the connection is closed while trying to send the file