Update copyright year
Fix file descriptor leak when daemonize.

Per Coverity 1111471.
Fix memory leak.

Per Coverity 1111442.