Enable logon-as-service in windows_service (CHEF-4921).

Confirmed, when the exception is raised the process will exit.