SONAR always plays through the last bit of data. There is no "stop command" which may be added to a track or project. Assuming there is nothing past the expected stopping point, enable "Stop at Project End" in the
Track View Options menu. This will cause SONAR to stop when the last bit of data is processed, otherwise; the transport continues to run past the last bit of data.