Go to you tube and watch this guy's series of videos.
He covers pretty much all of the failures you can experience and how to plan for them so they don't damage you equipment, fish or your house. Worth the watch. He presents lots of great information. His tanks are impressive at 375 gallon and 500 gallons.
He uses a pump controller sourced from Amazon. Looks like this one
. the price seems steep, but it is a drop in the bucket (pun intended) compared to the repair bills you could be facing if you don't use one.