test closing db conn to prevent thread errors