Fix an issue related to ping loop errors and ping state; add logging

Change-Id: Ie6d16a8914205ddf63ae1929961279f66360eb89
3 files changed