Improved stale client checking, fixed keep-alive check history & flap detection.