Stopping macros

When a macro is stopped the function on_stop of this macro is called. A general function can be defined to be called when any macro is stopped.

When you program a macro, be aware:

As a typ, instead of programming:

time.sleep(10)
it is more convenient:
self.checkPoint()
time.sleep(1)