Troubleshooting "Repeat While" Command

I tried to make a rule in RM 5.1 that alerts after a contact has been open for 2 minutes, and repeats after 2 minutes if the contact remains open. The alert should fire at most twice (at 2 and 4 minutes).

However, once the alert has triggered the first time, the alert always triggers a second time, even if the contact closes before the alert should fire (between 2 and 4 minutes).

Here is a log demonstrating this behavior:

Any idea where I'm going wrong?

What are the states of Side Door Sensor and Back Door Sensor during this time? (And Front Door Sensor, but that particular sensor's states seem clear from the logs.) Any of them remaining open will still make the repeat continue, even if the particular sensor that triggered this rule in the first place closes.

Good point! All other contacts were closed (and remained closed) during the above test.

Seeking to understand this command not so much giving an answer...I'm interested cause I'm messing with stuff just like this at the moment.

What happens if you take the "every 0:02:00" off the "While ( ) Repeat 2 times" and stick in a DELAY 2:00 before the END-REP ?