Would you bet you live on the assumptionthat there is no way a network problem could truncate the script into something, that does something unintended but harmful?
It looks like Patchwork's script doesn't quite do that, but it does put _most_ of its functionality into functions, and AFAICT there is no particular place in the script where a connection loss could lead to anything bad happening. Admittedly this appears to be a lucky accident rather than following best practice.
Thanks for the link. I've filed an issue and should have this fixed tonight