client: do not read from closed side