reload command is non-blocking which causes problems in CLI scripts. Let's take this as an example:
I use jboss-as-maven-plugin for its execution and sometimes I get: Command execution failed for command 'end-if'. if request failed: java.util.concurrent.ExecutionException: Operation failed: Channel closed
This functionality has already been asked in
WFLY-208, but for some reason it was implemented only for domain-related commands but not standalone-related (reload and shutdown).