Hi,
When you trigger your filtration pump, add a change node to save the state of the pump in a global variable. With this way you can check if it isn't working and turn off your circulation pump. Between your Turn Off node and Pump Circulation add a switch node which checks if your global variable is off, which transmits the message to turn off the circ pump.