What mechanism are you using to run JBoss AS as a serivice? There are several mechanisms mentioned here:
Most likely culprits:
a) If using a script mechanism, the script is calling Windows shutdown
b) If using a configurable mechanism (e.g. Java Service Wrapper), the configuration is set such that Windows is shut down
it was case a).
The service.bat I used was calling "shutdown" from Windows.
After changing the script it works as expected.
Localize and comment: REM call shutdown -S < .s.lock >> shutdown.log 2>&1 and solved.