On a Windows Server 2012 the Stat CA 5.8.0 running fine, but shutdown.bat stop the CA but leave orphan java.exe process active.
Support provided the following workaround:
1. Created batch file to run daily (Eg. killstat.bat). In the file as follow:
taskkill /fi "SERVICES eq Wildfly" /t /f
-- Instead of using taskkill /im java.exe /f, which kills all java.exe processes on the machine, we can use a filter with
/fi "SERVICES eq Wildfly"
/t kill all the child processes of the service, which is the specific java.exe
/f is the force option as before
Note: The SERVICES name is Wildfly. So, look in your service.bat file, if you look at line - set SHORTNAME=?, you need to substitute your SHORTNAME accordingly.