Fix resource (fds) leak in gangliad #4151

Also tweak the log messages.
Merge branch 'V8_1-ganglia-branch' into V8_1_4-branch