close file to avoid resource leak
restore the toolbar in the F1 console