agent: [iterator] check for connection after encoder data