Added more sophisticated client-quit detection (earlier clients were kicked because they lagged behind)