Issue #3418: database connection needs to be closed, otherwise it stays open.
Issue #3418: database connection needs to be closed, otherwise it stays open.

bartscheers/tkp,bartscheers/tkp,mkuiack/tkp,transientskp/tkp,mkuiack/tkp,transientskp/tkp