stop handshake io on close