safely closed cursor in consumeToCollection