>>/44902/
I think it's the switch or the problem at the switch because if it switched off and breaks the circuit, then it doesn't matter if the  ceiling is wet, there shouldn't be electricity in the wiring going up there. Ergo it does not stop it.