Change defer to explicit delay

The current call stack seems to be already clear once when the "Cancel"
is being clicked. An explicit delay allows the modal and backdrop to be
before the revert occurs.