client: fix disconnect