Rescue from DestroyWithOrdersError only if it's defined

Fixes #2877