2.
when the lights went out
shows that this happened during your homework; an interruption.