pktgen: correctly handle failures when adding a device