additional logic for CanExecute() PipeDeactivationCommand

implement pipe deactivation use case #367