# File lib/capistrano-stats/metric-collector.rb, line 27
    def collect
      return if user_preference == :none
      socket = UDPSocket.new
      message.anonymize! unless user_preference == :full
      socket.send(message.to_s, 0, *destination)
    rescue SocketError, Errno::EACCES, Errno::EADDRINUSE, Errno::EADDRNOTAVAIL,
      Errno::EAFNOSUPPORT, Errno::EALREADY, Errno::EBADF, Errno::ECONNREFUSED,
      Errno::ECONNRESET, Errno::EFAULT, Errno::EHOSTUNREACH, Errno::EINPROGRESS,
      Errno::EINTR, Errno::EINVAL, Errno::EIO, Errno::EISCONN, Errno::ELOOP,
      Errno::ENAMETOOLONG, Errno::ENETDOWN,
      Errno::ENETUNREACH, Errno::ENOBUFS, Errno::ENOENT, Errno::ENOSR,
      Errno::ENOTDIR, Errno::ENOTSOCK, Errno::EOPNOTSUPP, Errno::EPROTOTYPE,
      Errno::ETIMEDOUT, Errno::EWOULDBLOCK
      warn "There was a problem tracking statistics, please report to https://github.com/capistrano/stats"
    end