Use the Close option to close the currently open format.  You will be asked if you want to save any changes made to the format since it was last opened.  The Close menu option will be grayed out if there is no format open in JMagic.