Make teardownTestDB() close any dangling connections before changing the prefix