Description
prunsrv.c line 1733 calls CloseHandle(_service_status_handle), this causes an invalid handle exception to the thrown & caught.
The documentation for RegisterServiceCtrlHandleW() states that CloseHandle() does not have to be called.
See MSDN documentation for RegisterServiceCtrlHandleW.