Attempt to fix failing DB test by better closing of Db connections.