Looking at the last posts, why not add
Code:

If NOT @LOGONMODE
Break On
Else
Break Off
EndIf


on top of all of your scripts?