I can warmly recommend the nohup-sleep-disable-cancel pattern for this, as a dead man's switch for danngerous changes.
https://entropicthoughts.com/locking-yourself-out-with-firew...