Added fix for logrotate causing dangling file handlers . Closes #111