bug fix, close connection after query meta info