Updating rcmd scheme. end of command message should be sent to close the command session. This modification allows continuous commanding without closing session.