Fix file descriptor leak when daemonize.
Fix file descriptor leak when daemonize.

Per Coverity 1111471.

treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres,treasure-data/prestogres