Track changes in content data and ask for unsaved changes on exit