Fix resource leak in logging plugin.
Publish error instead of ignore.
Merge pull request #6 from greboid/logging-resource-leak

Fix resource leak in logging plugin.