Valve shutdown