Yep, that's exactly what happens. Even if you're in the middle of a mode, the whole thing shuts down and then launches Midnight Madness. Once you're down to your last ball, it picks up right back in the middle of where you were.
Fun stuff!
Later,
EV