Handle incoming pings.