disconnects from pool, releases db connections before db:drop
Merge pull request #1 from stepchud/reap_thread_death_backport404

disconnects from pool, releases db connections before db:drop