Fixes Redmine #1855: don't close file descriptors we use
Merge pull request #621 from jooooooon/bug_1855/avoid_random_syslog_outputs

Fixes Redmine #1855: don't close file descriptors we use