clients now correctly leave