This should work. Or if you have a dimmer switch in the room, you can dim it gradually to mimic the effect.
Abrupt darkness is what causes panic, because it doesn't give them a chance to find a safe spot to settle for the night, which is terrifying for a prey animal.