To shut down the System you have to call the method
stopSystem()
which does nothing else then setting the
running variable to false.
When this boolean is false, the loop in the
run() will terminate and
the
terminateSystem() method is being called. The terminateSystem
method cleans up the System and terminates the program. This is done in the
following order: