When you halt an event in that remote file it moves onto the next one in the order and continues processing. So it's likely that the script's own text event is being triggered with its own customizations taking place. What you can do is go through the script adding the & prefix to the text events that you don't want triggered when you use /halt in your own text event.

So on ^*:text: becomes on &^*:text which prevents that event from triggering if /halt or /haltdef was used in a similar event in a previously processed file