Redirect error messages in $JBOSS_CONSOLE_LOG

Change the order to redirect error messages in ```$JBOSS_CONSOLE_LOG```