Prevent loss of changes by prematurely closing the modal slide editor.