bug fix: close unauthorizedDatabase
Merge pull request #160 from dennishendriksen/master

Bug fix: close unauthorizedDatabase