client ignoring data to send on close (fix)