You will need to create a blank track on the bottom of your session. So that when the macro tries to jump to the next track, it does go down and select no audio, and stop. Otherwise it will keep returning to start. Alternatively, you can modify the macro to stop, rather than go to next track.
