When it gets stimulated by the electric impulse, the light propagates through the nervous system.
The manually operated dead-bolt ensures lock closing regardless of the electric impulse.