By "close the connection" I mean "this session must not be allowed to transport any more data."