Ok, I found the error.
My functional agent config:
#System Shutdown with delay
EnableActions = yes
Action = System.ShutdownWithDelay:shutdown.exe -s -c "PowerFail" -t $1
Action = System.ShutdownAbort:shutdown.exe -a
I added the abort command for Shutdown.