Converting a console service application to a Windows service