Since the idle time can be long, persistent connections could have prevented a timely server shutdown.
Modeled to follow the net/http ResponseWriter.