For vertica drivers: If we call select analyze_statics in a transaction, it is impossible to close that transaction, and it is impossible to disconnect an odbc connection if there is a transaction is in progress, but the nanodbc disconnect function didn't check the error. It will now check the error, but if it gets called from a destructor the destructor will ignore the error.