To end the session, use the McIDAS-X command EXIT. It closes the Text and Command, and Image Windows, and ends all McIDAS processes. Running EXIT from the McIDAS command line is a cleaner way of ending the session than manually closing each window with the mouse.