Nintendo will still be alive and kicking. Despite an atrocious eighth gen showing, they've mostly eliminated Sony from the handheld space already.
Additionally, their financials are on the rise again, so it isn't even up for consideration to bow out of the home console space. And due to the unique characteristics of the video game business (new system means a reset of perception), the Wii U's failure doesn't dent Nintendo's image all that much.
overall profits doesn't mean WiiU was successful financially. 3DS is undoubtedly making the money for Nintendo. This coming from one of the few that has supported Nintendo's home console showing this gen and really thinks it deserves higher sales than Xbox right now.
Get Your Portable ID!Lord of Ratchet and Clank
Duke of Playstation Plus
Warden of Platformers