add dying client detection