Sounds like the switch contact had shifted around a bit and the action of you moving it around a bit put it back in place, or the insulator had juice built up on the back side causing the soft short which would trip the battery circuit. As far as potting the switch back in, it would be best. And...