Welcome to the forums, Raven
When you use the
switchmove command, the unit will stay in that position
no matter what. Even if killed (as you have discovered...
You'll need to use either:
unit switchmove "null"
or
unit switchmove ""
To get him to 'unswitchmove'