OSError: XMEGA Command 20 failed: err=1, timeout=1

I found the issue and feel somewhat stupid. After trying to program a wrong file the programmer goes into an ERROR state and I have to disconnect it first before trying to program again. So if anyone has the same issue be ware.

kind regards S.U.