Improved Fred to close all boxes if the close button of the main (console) box is clicked.