How about rather than switching off the PC if the fish tank temp increases too much, you activate fans on an intermediary waterblock cooler so as to control the temp of the water more whilst running computation non-stop?
I think you may also need to worry about the blue tube's suction being a hazard to fish?
RE: BOINC cogeneration - Gridcoin mining + heat = win-win