Cancel a parked request in manual queue when the issuer dies

If a user mode thread utilizing a manual queue for parking requests terminates during a system power-off, is it necessary to program the thread to issue an IOCTL and complete the parked requests, or will the requests be automatically cancelled?
The intended functionality is that when the thread terminates, any parked request which are previously issued by the thread should be cancelled. Only one parked request per user mode thread should be in the queue at a given time.

If the request is queued to any type of WDF queue, unless you have registered an EvtIoCanceledOnQueue callback function for that queue, the framework will automatically perform the cancellation. Also, your user mode app does not have to do anything. Terminating the thread that issued the request will start the cancellation process.