JBossAS7.1.1 is really too old and very initial phase of AS7 series. There are many fixes and enhancements are made in later releases.
Similar issues are reported in [AS7-1833] CLI usability: operations that shutdown the server-side management interface result in "Communication error" …
Wildfly should be suggested here.
You should use "reload" cli operation instead of low level ":reload" (note the ":" colon sign) mgmt operation.
Which addresses the problem you have.
Not sure in what version we added that, but for sure it is in EAP6.1 and newer