Fix resource leak in HiveSplitSource when queries terminate early