As you suspected they can stop laying after any disruption of their routine. The time it takes them to get over the stress depends on the individual bird; some are able to shrug off the stress faster than others.
The light being unplugged may have forced some of your hens into an early molt...