The issue is that when a shutdown command gets issued, the servers exit and cause error messages to get spewed by the rsclient command interpreter and return with a non-zero exit status. To fix this the shutdown command in the rsclient command interpreter would just send the shutdown command and return immediately. However, this causes a problem with stop-servers.sh because the line immediately after shutdown was a stop-dfsbroker. There was a race condition where sometimes the dfs broker would get killed before the RangeServer received the shutdown command. To fix this, I separated out the close from the shutdown.
I suppose I could rename 'shutdown' to 'kill'. Would that work for you?