Ping a specified host, logs the output, and calls a block on packet loss.