- Stopping a NeXtMidas session:
  - After exiting the NeXtMidas shell the session can be ended by using the `nmend` command
    - In Linux:

          $ nmend

    - In Windows:

          c:\> nmend

  - This will clean up any temporary NeXtMidas files and reset any environment variables that were set.
  - Once you run `nmend` you can no longer re-enter the shell by typing `nm`. If you wish to start NeXtMidas again you can do so by using `nmstart`.