fix empty http header fields; ensure glog is shut down