avrdude succeeds but Arduino IDE reports a error

I'm having problems with latest versions of Arduino IDE. I'm trying to upload a program to attiny44 with BusPirate as a programmer. I'm getting an error almost at the end, but surprisingly the program works.

programmers.txt
buspirate.name=BusPirate as ISP
buspirate.communication=serial
buspirate.protocol=buspirate_bb
buspirate.program.protocol=buspirate_bb
buspirate.program.tool=avrdude
buspirate.program.extra_params=-P{serial.port}

When I use avrdude directly everything succeeds without any error.

Is something wrong with avrdude exit code?

Thanks for any help!

I have seen this before but it was never a definite problem. Currently my version of Arduino IDE Ver. 1.8.13 It tends to eat itself. For me, this happens on three different machines with different releases of Mint loaded. If I get an upload error, sometimes it spits a lot of Java error messages, then appears to be OK or locks up. If it appears OK it generally comes up with some weird error or shows a problem at the end of the nest upload. I simply close the IDE and relaunch it. generally that solves it. Some times I change ports. Also I have noted if the USB cable gets over a meter in length it appears to sometimes maybe have upload problems. One good thing they did with the IDE is have it load the last program upon launch. Most of my problems but not all are with the Arduino D1 R2. As far as it working after a bad upload I saw that as well but I added the compile date to the hello world message and saw it was the previous code that was running. This probably won't help much but at least you know you are not alone.

Thank you for the answer, but if I understood correctly it hapends from time to time and restart helps. My situation is quite different. I have never uploaded successfully, not once.

The problem isn't a blocker cause the program actually uploads, but it's so irritating.

The problem has gone when I downgraded buspirate firmware. The normal protocol (buspirate, not buspirate_bb) works fine again.