I think it has something to do with the player left clicking / triggering, if you change it from onActivate to onPlayerTouch and move the player away from the brick e.g. addVelocity, it'll do it properly 100% of the time.
if (isPackage(electrocuting))
deactivatePackage(electrocuting);
package electrocuting {
function Observer::onTrigger(%this, %obj, %trig, %state) {
%client = %obj.getControllingClient();
if (%client.isBeingElectrocuted)
return;
Parent::onTrigger(%this, %obj, %trig, %state);
}
};
activatePackage(electrocuting);
Packaging Observer::onTrigger seems to fix your issue.