None of the above helped me. So I started investigating and came back with M-x top-level. From the interactive help:
M-x top-level
(top-level) Exit all recursive editing levels. This also exits all active minibuffers.