Revert "Merge pull request #25857 from KevinGrandon/bug_1089528_statusbar_closing"

This reverts commit 3fc987680a19be2cbbb069c25e10f24cdda4d0c9, reversing
changes made to db056d03e6b8690e101645acb52584af7728550d.