Support for stop() function.

Not used in OpenMM (or my planned toy MD), but might be useful for Gromacs
or other external tools.