Are you sure the shutdown process is not being called? Or maybe the odbc code is not completing correctly. Remove all code in the shutdown location and replace it with an echo command. If you run the shutdown with this echo and all looks good (enable_all eo config), slowly add your code back in until you isolate the problem. I’m not running the odbc add-on in our environment so I can’t check the actual odbc code.