fix(status.bar): remove status bar on file close

Fix a bug when close the current file with status bar shown, the status bar with error will still be shown until you open a new file.