Catch and log StandardError instead of SocketError for UDP