Stop cue with midi command from midi map

Hi,
I managed to connect a malletstation pro to ardour, make a midi_map, and start the cue line “A” and it repeats. The info about the command to stop it, Cues/stop-cues-0-now, doesn’t seem to work.
This is what I have so far:

How can I do this? Is it possible to choose to stop immediately or to stop at the end of the pattern?
Thanks
Adam