close should flush any truncated send before really closing

Signed-off-by: Andy Green <andy.green@linaro.org>
6 files changed