Client now closes when disconnected.