so, indeed, shutdown fails as there is no change user can press anything.

try timing a messagebox.
if the timer goes out, do immediate shutdown.
_________________________
!

download KiXnet