client: try writing close_notify