No I use ON SHUTDOWN to save some users settings in a table and it works just fine no matter which way application is closed. May be You use a command that clears a path.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.