i tried to launch the script on shutdown with "start on shutdown" but this doesn't work.
start on starting shutdown
grep shutdown /etc/event.d/*