Add missing close for
Merge pull request #3077 from brainformatik/2.0.0

Tests: Add missing close for logger