implemented killign clients logic