Pass 'close' and 'end' events from tcp transport to client object