server: make shutdown nearing to an end

Be a bit more verbose on what's going on, and just shut down if there
seems to be no more progress with sending data.