uninstall failed with system shutdown

Hi,
I have an encryption minifilter driver. Unloading it is ok in temporary tests (via “fltmc unload drivername” ).

I want to uninstall it by following steps:
1- RUNDLL32.EXE SETUPAPI.DLL,UninstallHinfSection …
2. DeleteFlag set to 1

if I restart my system after these steps, driver unload completed, but it exists with shutdown.
what is different between two scenarios?

You’ve encrypted something that is required to boot the system?

That’s the only guess I have based on the minimal information provided.

-scott
OSR
@OSRDrivers