Unwanted shut down of outputs.

liudr:
Do you have resistors in series with your LEDs?

It is strange that you figured out the period of your problem (I wish my students were this good) and more but failed to answer such a simple question.