die "Error receiving batch: ".$_->{error}."\n";
}
}
-# $self->https_post('/batch/close', {
-# login => $self->login,
-# password => $self->password,
-# batch_id => \@batches_in_transit,
+ $self->https_post('/batch/close', \@batches_in_transit);
@$result;
}