Wrap destructive commands with checks.

Wrap destructive commands with checks.