`assert(client.isClosed)` or is it more complicated somehow?