If a dry cell (recirculates the electrolyte) then be sure that your
out or gas side line loops so that it is higher than the fluid return
side. This will prevent the siphon effect from starting.
If a plates in a bucket approach, then try a 12vdc normally open
relay valve. wire it so that it is energized (i.e. closed) when
power is applied to your cell. When the power to the cell is turned
off then the relay valve will automatically open preventing the
siphon action to start when the cell cools.
Hope this helps.
Bro. Dave Brown, OBB
Green Bay Monastery, WI