I think the writing on the wall is clear, to anyone who cares to take a look. The moment we create an artificial intelligence capable of self-improvement and let it loose, we will have fulfilled our function (others say destiny) and will therefore be obsolete in every sense of the word.
What will happen to humanity after that point is irrelevant.
You don't see humans trying to keep bacteria "in the loop", why expect otherwise from our artificial progeny?