Fix res.sendfile logging standard write errors

releated to #2433 and b326ae89df48faac64f22be0eca0a86c87b203ee