Was the photocell rated for an inductive load?
The fact that the cell was damaged by switching OFF suggests that the collapsing magnetic field may have damaged it.

[This message has been edited by Redsy (edited 10-01-2002).]