Fixed missing stop condition in PingApp.