Taskkill requires /f to terminate caddy

Related to Does taskkill allow caddy to shut down gracefully?

If I want to stop caddy on Windows I can call

taskkill /IM caddy.exe

however I get

ERROR: The process “caddy.exe” with PID 7020 could not be terminated.
Reason: This process can only be terminated forcefully (with /F option).

if I use /F eg

taskkill /IM caddy.exe /F

this will kill the caddy process, but does not allow graceful shutdown.

Is there something in the code that prevents taskkill without /f from terminating caddy? Could it be changed?

Hm, again, I don’t have Windows but maybe somebody else could look into this? (I could install a VM, yes, however this time of year is actually really busy for me.)