Added support for closing secondary dbs.
Merge branch 'master' of https://github.com/uberj/Winter2013