Don't open next view during close all command

Fixes #9087

The fix is a little more complex than just suppressing the open next command because the api allows for any arbitrary list of files to be passed in to it so we need to do something special if the current file is closed.
This isn't new code, it was just moved to a function. The interstitial page is shown whenever the current view is destroyed.  If ```Destroy``` is called on the current view then it would be bad to continue to show it or to show nothing. Internal APIs avoid this situation by preventing the changing of the current view and turning the current view into a temporary view which essentially marks it for destruction when the next view is shown.  This is what happens when we open the next view in the MRU list.