Abstration of the stop() function in SMA