Stabilizes socket handling and adds client list