[server][DBAgentMySQL] Set an internal flag for a connection state soon after calling mysql_close().