fixes #78 correct log closing
Merge branch 'hotfix/log_closing_crash'