exit client when clicking "leave"