ensure glog is shut down
fix handling of empty http header values; move details out of header