Das ist ja nicht tragisch.

Wenn er hängt ist der Zustand der Ports ja quasi statisch.
Da kannste die LED eben zur Kontrolle kurz umstecken.