I made some modifications a while ago in my work machine.

The relevant parts is this. Because capture execute in one machine and this cancels for all machines.
So I moved the decision to inside the sudo_script. 

Please just wait some hours so I could push them.