Added closing of resultSet which otherwise would prevent tables from
being dropped.