As the title says. A fail-safe mechanism is needed to prevent work from being lost if the cancel button is accidentally pressed.