Adjust the listener for ping failed.

* When ping failed three times, need notify up level ping stopped.
Merge pull request #1 from habzy/habzy

Adjust the listener for ping failed.