[E1.31] Add log message when sendto() fails
(cherry picked from commit 58f4cb1122c4ea6caac7c505df47de6c50383e24)