Would a sprinkler valve work?
As for the electronics side of things, you could use a normally open relay so when power is lost it closes a circuit...
A servo would suffice for this, but it requires a microcontroller to operate, if you already have one then great, but if not maybe look at solenoids.