switch to using a gracefully-shutdown-able webserver, github.com/glycerine/go-tigertonic. Depends on go1.3 or later.