you need to do the call to rcmsrvc in that way that it returns back.
rcmd can take commandline like normal %comspec% or you need to say some how in the connection that it needs to stop.
easiest way is to start the rcmd as single line and call it as many times you need to.
_________________________
!

download KiXnet