Redirect error messages in $JBOSS_CONSOLE_LOG

Change the order to redirect error messages in ```$JBOSS_CONSOLE_LOG```
[AS7-6816]:Minor update to fix deploymentManager and modelControllerClient are only closed if uniqueName != null
Fix default permission of distributed tmp/auth directory.