db logger: make sure to close the Closeable

Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>