If your fish is sleeping on the sandbed they won't discriminate if the dark is total and the fish is deep asleep. This is why turning the lights out is safe, but blacking out the tank to pitch blackness is not. When we say 'lights-out' treatment for cyanobacteria, we mean keep the lights off, don't drape the tank.