Auto destroy statements when destroy connection.
Destroys only those statements which were created after autoclosestmt setting.
Fix. Wrong setting DONT_DESTROY flag for statement.
Change. If flag DONT_DESTROY is set on connection then SQLDisconnect not invoke.