The Exit System menu option will close JMagic application.  If a format is currently open, the option to save changes to that format will be presented before closing.