add stop timeout and start mode for windows service.bat

fixes #3938
fixes #3962