public plugin_end(){ if(g_SqlConnection != Empty_Handle) { SQL_FreeHandle(g_SqlConnection) //free connection handle here }}